package cn.com.css.taxInspection.gt3.service.impl;

import java.util.List;

import org.springframework.stereotype.Service;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import cn.com.css.taxInspection.gt3.entity.JcJcryEntity;
import cn.com.css.taxInspection.gt3.mapper.JcJcryMapper;
import cn.com.css.taxInspection.gt3.service.JcJcryService;



@Service("jcJcryService")
public class JcJcryServiceImpl extends ServiceImpl<JcJcryMapper, JcJcryEntity> implements JcJcryService {

	@Override
	@DS("oracle")
	public List<JcJcryEntity> getByJcajxxuuid(String relevance) {
		
		LambdaQueryWrapper<JcJcryEntity> queryWrapper = Wrappers.lambdaQuery();
		
		queryWrapper.eq(JcJcryEntity::getFzrbz, "Y");
		
		queryWrapper.eq(JcJcryEntity::getJcajxxuuid, relevance);
		
		List<JcJcryEntity> list  = this.list(queryWrapper);
		return list;
	}


}